package com.fjsay.java.demo6;

public class Yuan {
    double r;

    public Yuan(double r) {
        this.r = r;
    }

    public void gerArea(){
        System.out.println("半径为"+r+"厘米的圆对象，面积是"+(r*r*3.14)+"平方厘米");
    }
}